Skip to content

Conversation

@featheredtoast
Copy link
Member

@featheredtoast featheredtoast commented Nov 8, 2024

create release on tag push of type v*.*.*

uploads both tar.gz and md5.

on tag creation EG, v2.0.0 this github action will:

  • create a release of the same name -- v2.0.0
  • Upload gzipped binary assets for each OS/arch, along with their md5 hashes

This does not use goreleaser, or go-release-action. Creation is simple with setup go, and compilation in the shell. It then uses github cli to upload the release assets.

Comment on lines 5 to 6
tags:
- "v*.*.*"
Copy link
Contributor

@tgxworld tgxworld Nov 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should be using tags here to push out a release. This repository contains more than just code for launcher so a git tag would make little sense for the discourse_docker related stuff. Are we able to use some sort of version file here so that a new release is created when the version in the file is bumped?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure let me update to watch for that 👍

Copy link
Member Author

@featheredtoast featheredtoast Nov 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, short answer no it's not going to work exactly as you requested. But I've updated it so we push assets to a single release.

Github releases require a git tag, and if we don't want to provide one, we need to create a dummy tag for the release to pin to, and create a single launcher release. We can then overwrite assets within that release, and that single release becomes our go-to 'latest' release for the assets. Will that be sufficient?

@featheredtoast featheredtoast force-pushed the gh-action-upload-to-release branch from ff60565 to d07f99e Compare November 12, 2024 19:15
Do not use tagged releases. Upload assets to a static release named launcher2.
@featheredtoast featheredtoast force-pushed the gh-action-upload-to-release branch from d07f99e to 30e5abc Compare November 12, 2024 19:22
@featheredtoast
Copy link
Member Author

Updated so we're using GH CLI to upload release assets to a single static release instead of creating and uploading on a tag creation.

@featheredtoast featheredtoast changed the title upload launcher2 to github release on tag creation upload launcher2 to github release Nov 12, 2024
@featheredtoast
Copy link
Member Author

closing in favor of discourse/launcher#1

@featheredtoast featheredtoast deleted the gh-action-upload-to-release branch May 17, 2025 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants